package com.huiyuan.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author huiyuan080
 * @data 2023/5/2
 * @apiNote
 */
public class User implements Serializable {
    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 用户姓名
    */
    private String userName;

    /**
    * 用户余额
    */
    private BigDecimal userBalance;

    /**
    * 用户积分
    */
    private Integer userIntegral;

    /**
    * 用户是否租车(0-没有租出，1-已经租车)
    */
    private String userIsRent;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public BigDecimal getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(BigDecimal userBalance) {
        this.userBalance = userBalance;
    }

    public Integer getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(Integer userIntegral) {
        this.userIntegral = userIntegral;
    }

    public String getUserIsRent() {
        return userIsRent;
    }

    public void setUserIsRent(String userIsRent) {
        this.userIsRent = userIsRent;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", userBalance=").append(userBalance);
        sb.append(", userIntegral=").append(userIntegral);
        sb.append(", userIsRent=").append(userIsRent);
        sb.append("]");
        return sb.toString();
    }
}